/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('foot', {
    id: {
      type: DataTypes.INTEGER(30),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    uid: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    name: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    img: {
      type: DataTypes.TEXT,
      allowNull: false
    },
    num: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    money: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    time: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    address: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    askdec: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    specask: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    createdAt: {
      type: DataTypes.DATE,
      allowNull: false
    },
    updatedAt: {
      type: DataTypes.DATE,
      allowNull: false
    },
    state: {
      type: DataTypes.INTEGER(20),
      allowNull: false,
      defaultValue: '0'
    },
    bumoney: {
      type: DataTypes.STRING(8),
      allowNull: false
    },
    lat: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    lng: {
      type: DataTypes.STRING(20),
      allowNull: true
    }
  }, {
    tableName: 'foot'
  });

  Model.associate = function() {

  }

  return Model;
};
